package com.boluo.common.core.domain.entity;

import com.boluo.common.annotation.Excel;
import com.boluo.common.core.domain.BaseEntity;

import java.util.ArrayList;
import java.util.List;


/**
 * 物品分类信息对象 bus_ment_goods_category
 * 
 * @author boluo
 * @date 2023-05-02
 */

public class BMGoodsCategory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String categoryName;

    /** 描述 */
    @Excel(name = "描述")
    private String categoryDesc;

    /** id层级结构 */
    @Excel(name = "id层级结构")
    private String busiPath;

    /** 上级分类id */
    @Excel(name = "上级分类id")
    private Long parentId;

    /** 子分类 */
    private List<BMGoodsCategory> children = new ArrayList<BMGoodsCategory>();

    @Override
    public String toString() {
        return "BMGoodsCategory{" +
                "id=" + id +
                ", categoryName='" + categoryName + '\'' +
                ", categoryDesc='" + categoryDesc + '\'' +
                ", busiPath='" + busiPath + '\'' +
                ", parentId=" + parentId +
                ", children=" + children +
                '}';
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getCategoryDesc() {
        return categoryDesc;
    }

    public void setCategoryDesc(String categoryDesc) {
        this.categoryDesc = categoryDesc;
    }

    public String getBusiPath() {
        return busiPath;
    }

    public void setBusiPath(String busiPath) {
        this.busiPath = busiPath;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public List<BMGoodsCategory> getChildren() {
        return children;
    }

    public void setChildren(List<BMGoodsCategory> children) {
        this.children = children;
    }
}
